package cn.ygh.bbo.common.exception;

/**
 * @author ygh
 * @Desc json异常响应 需要客户端特殊处理
 * @date 2019/11/16
 */
public class JsonException extends RuntimeException {
    /**
     * 异常响应码 默认201
     */
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public JsonException(Integer code) {
        super("业务异常");
        this.code = code;
    }

    public JsonException(String message, Integer code) {
        super(message);
        this.code = code;
    }

}
